package com.societyGames.flashForms
{
public class DockUnitType
{
  public static const percent:DockUnitType = new DockUnitType("percent"); //Specific percent
  public static const pixel:DockUnitType = new DockUnitType("pixel"); //Specific pixel dimension
  public static const item:DockUnitType = new DockUnitType("item"); //Whatever size the object reports. Responds to IChangeSize.
  private static var isInitialized:Boolean = false;
  //Static constructor
  {
    isInitialized = true;
  }

  private var _text:String;

  public function DockUnitType(text:String)
  {
    if (isInitialized)
    {
      throw new Error("Cannot instantiate new enum.");
    }
    this._text = text;
  }
}
}